"button effect"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <a class="btn fill" href="#">Learn more</a> </div> </div>
@import url('https://fonts.googleapis.com/css?family=Old+Standard+TT:400|Muli:300,700'); body{ background: #000; display: flex; justify-content: center; height: 100vh; width: 100vw; align-items: center; font-family: 'Muli', sans-serif; } .btn.fill { background: #d5cdcd; } .btn { position: relative; display: inline-block; color: #282828; border: none; border-radius: 0; outline: 0; padding: 1.25rem 2rem; font-family: inherit; font-size: 0.6875rem; font-weight: 700; text-align: center; text-transform: uppercase; cursor: pointer; -webkit-transform: translate(0); transform: translate(0); letter-spacing: 0.1875rem; } .btn::before { position: absolute; content: ""; transition: -webkit-transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1); transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1); transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1), -webkit-transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: -1; top: 0; left: 0; right: 0; bottom: 0; background: #fff; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transform-origin: 100%; transform-origin: 100%; } a { transition: color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); color: #d5cdcd; text-decoration: none; } .btn:hover { color: #282828; } .btn.fill { background: #d5cdcd; } a:hover { color: #fff; } .btn:hover::before { transition: -webkit-transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1); transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1); transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1), -webkit-transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1); -webkit-transform: scaleX(1); transform: scaleX(1); -webkit-transform-origin: 0%; transform-origin: 0%; }

Related: See More


Questions / Comments: